package inheritedPanel;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class TopMenuIcon extends JPanel{
	private static final long serialVersionUID = 1L;
	Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
    int x = size.width, y = size.height;    
    
	public TopMenuIcon() {
		lblTSale = new JLabel();
		lblTInventory = new JLabel();
		lblTFinance = new JLabel();
		lblTReport = new JLabel();
		
		setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
        setPreferredSize(new Dimension((int)(x * 0.75), 120));
        setBackground(new Color(83,83,83));

        lblTSale.setText("Sale");
        lblTInventory.setText("Inventory Control");
        lblTFinance.setText("Finance");
        lblTReport.setText("Report");

        lblTSale.setIcon(new ImageIcon(getClass().getResource("/logo/sale.png")));
        lblTInventory.setIcon(new ImageIcon(getClass().getResource("/logo/inventory.png")));
        lblTFinance.setIcon(new ImageIcon(getClass().getResource("/logo/finance.png")));
        lblTReport.setIcon(new ImageIcon(getClass().getResource("/logo/report.png")));

        add(lblTSale);
        add(lblTInventory);
        add(lblTFinance);
        add(lblTReport);
        ControllerGeneral.setStyleMenuTop(this);
	}
	
	/*
	 * @variable
	 */
	JLabel lblTSale = new JLabel();
    JLabel lblTInventory = new JLabel();
    JLabel lblTFinance = new JLabel();
    JLabel lblTReport = new JLabel();
    JLabel iconSale = new JLabel();
    JLabel iconInventory = new JLabel();
}